<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewOrganizationTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
            	<p:panel header="#{bundle.DadosGerais}" >
	                <h:panelGrid columns="2" columnClasses="campoRotulo,campoDado">
						<h:graphicImage url="/images/spacer.png" height="1" width="150" />
						<h:graphicImage url="/images/spacer.png" height="1" width="350" />
						
	      				<h:outputText value="#{bundle.OrganizacaoLabelID}: "/>
	                    <h:outputText value="#{organizationController.selected.id}" title="#{bundle.OrganizacaoLabelID}"/>
												
	      				<h:outputText value="#{bundle.OrganizacaoLabelNome}: "/>
	                    <h:outputText value="#{organizationController.selected.name}" title="#{bundle.OrganizacaoLabelNome}"/>
	                    
		                    	                    
					</h:panelGrid>
				</p:panel>
				<br />
                <ul class="menu-acoesAbas">
	                <li>
	                	<h:commandLink  styleClass="botaoAtivado" action="#{organizationController.destroyAndView}" value="#{bundle.GeralLinkExcluir}"/>
	                </li>
	                <li>
	                	<h:commandLink  styleClass="botaoAtivado" action="#{organizationController.prepareEdit}" value="#{bundle.GeralLinkEditar}"/>
	                </li>
                </ul>
            </h:form>
        </ui:define>
                <ui:define name="menuAcoes">
			<h:form>
			<ul class="menu-acoesAbas">
                <li>
                	<h:commandButton styleClass="ui-state-default" action="#{organizationController.prepareCreate}" value="#{bundle.GeralLinkNovo}" />
                </li>
                <li>
                	<h:commandButton styleClass="ui-state-default" action="#{organizationController.prepareList}" value="#{bundle.GeralLinkListar}"/>
                </li>
                <li>
                	<h:commandButton styleClass="ui-state-default" action="/index" value="#{bundle.GeralLinkIndex}" immediate="true" />			    
			    </li>
			</ul>
			</h:form>
		</ui:define>
        
    </ui:composition>

</html>
